﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenExpressApp.Module.Library;

namespace OpenExpressApp.Library
{
    interface IPermissionService
    {
        void Load();
        bool HaveOperationPermission(User user, Guid businessObjectId, Guid operationId);
        bool HaveOperationPermission(OrgPosition role, Guid businessObjectId, Guid operationId);

        bool HaveDataPermission(User user, Guid businessObjectId, string context);
        bool HaveDataPermission(OrgPosition role, Guid businessObjectId, string context);
    }
}
